<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>{{title}}</title>
  <meta name="description" content="particles.js is a lightweight JavaScript library for creating particles.">
  <meta name="author" content="Vincent Garreau" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link rel="stylesheet" media="screen" href="css/login.css">
</head>

<body>
  <!-- particles.js container -->
  <div id="particles-js" style="display: flex;align-items: center;justify-content: center">
  </div>
  <div class="login-page">
    <div class="login-content">
      <div class="login-tit">HELLO后台管理系统</div>
      <div class="login-input">
        <input type="text" class="name" placeholder="用户名/手机号">
      </div>
      <div class="login-input">
        <input type="password" class="pass" placeholder="密码">
      </div>
      <div class="login-btn">
        <div class="login-btn-left">
          <span class="login">登录</span>
        </div>
        <div class="login-btn-right" onclick="changeImg()">
          <img src="images/check.png" alt="" id="picture"> 记住密码
        </div>
      </div>
    </div>
  </div>


  <!-- scripts -->
  <script src="js/particles.js"></script>
  <script src="js/app.js"></script>
  <script src="js/jquery.js"></script>
  <script src="js/login.js"></script>
  <script>
    //记住我勾选图片切换
    function changeImg() {
      let pic = document.getElementById('picture');
      console.log(pic.src)
      if (pic.getAttribute("src", 2) == "images/check.png") {
        pic.src = "images/checked.png"
      } else {
        pic.src = "images/check.png"
      }
    }

    document.onkeydown=function(e){
      if(e.keyCode==13){
        $(".login").click();
      }
    }

  </script>
</body>

</html>